#pragma once
#include<string>

int gbkToUtf8(const char * gbkstr, int gbkstrlen, char * utf8str, int utf8strlen);
int utf8ToGbk(const char * utf8str, int utf8strlen, char * gbkstr, int gbkstrlen);

std::string& gbkToUtf8(std::string& gbkstr);
std::string& utf8ToGbk(std::string& utf8str);

std::string gbkToUtf8(const std::string& gbkstr);
std::string utf8ToGbk(const std::string& utf8str);